#include "EntRenderer.h"

EntRenderer::EntRenderer() {

}

void EntRenderer::think() {
	if (target) {
		vect pos = target->getPosition();	
		quat orient = target->getOrientation();
		// keep the camera in the model but far out enough
		// so that the near clipping plane is outside the model;
		// assume 8. model size
		setPosition(pos + orient.rotate(vect::FORWARD * 0));
	}
}

void EntRenderer::draw() {

}

void EntRenderer::setTarget(Ent* e) {
	target = e;
}
